<?php /* Smarty version Smarty-3.1.18, created on 2017-05-17 08:15:44
         compiled from "/data/www/mystery/protected/modules/webadmin/views/staff/network.tpl" */ ?>
<?php /*%%SmartyHeaderCode:35982323654d193bb48cd85-36051982%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '92b43b387008231f19b6a56221de5801fb2067d1' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/staff/network.tpl',
      1 => 1494904926,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '35982323654d193bb48cd85-36051982',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_54d193bb4fe772_64907367',
  'variables' => 
  array (
    'list' => 0,
    'val' => 0,
    'banklist' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54d193bb4fe772_64907367')) {function content_54d193bb4fe772_64907367($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<script>
function open_staff(network_id,open_staff){
    $.getJSON('/webadmin/staff/open',{network_id:network_id,open_staff:open_staff},function(res){
        if (res.status==1) {
            alert('操作成功');
            location.reload();
            return false;
        }
        alert('操作失败');
    });
    return false;
}
</script>
<table width="100%" border="0" cellspacing="0">
 <tr>
    <td width="13%" valign="top">
        <?php echo $_smarty_tpl->getSubTemplate ("../common/left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

    </td>
    <td width="87%" valign="top">

        <table width="100%" border="0" cellspacing="0">
          <tr>
             <td>
              <div class="subnav">
                <div class="clearbox"></div>
              </div>

              <div class="pad_10">
                <div class="table-list">
                <table width="100%">
                      <thead>
                        <tr>
                              <th width="128">网点编号</th>
                              <th width="400" align="left">网点名称</th>
                              <th width="200">所属银行</th>
                              <th width="231">管理操作</th>
                        </tr>
                      </thead>
                      <tbody>
                          <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                         <tr onMouseOver="this.className='tr2'" onMouseOut="this.className='tr1'" class="tr1">
                              <td align="center"><?php echo $_smarty_tpl->tpl_vars['val']->value['network_num'];?>
</td>
                              <td>
                                  <?php if ($_smarty_tpl->tpl_vars['val']->value['open_staff']) {?>
                                  <a href="/webadmin/staff/list?network_id=<?php echo $_smarty_tpl->tpl_vars['val']->value['network_id'];?>
"><span style="">※ <?php echo $_smarty_tpl->tpl_vars['val']->value['network_name'];?>
</span></a> 
                                  <?php } else { ?>
                                  <span style="">※ <?php echo $_smarty_tpl->tpl_vars['val']->value['network_name'];?>
</span>
                                  <?php }?>
                              </td>
                              <td align="center"><?php if ($_smarty_tpl->tpl_vars['banklist']->value[$_smarty_tpl->tpl_vars['val']->value['bank_id']]) {?><?php echo $_smarty_tpl->tpl_vars['banklist']->value[$_smarty_tpl->tpl_vars['val']->value['bank_id']];?>
<?php }?></td>
                              <td align="center"><?php if ($_smarty_tpl->tpl_vars['val']->value['open_staff']==1) {?><a href="javascript:;" onclick="open_staff(<?php echo $_smarty_tpl->tpl_vars['val']->value['network_id'];?>
, 0);">关闭</a><?php } else { ?><a href="javascript:;" onclick="open_staff(<?php echo $_smarty_tpl->tpl_vars['val']->value['network_id'];?>
, 1);">开通</a><?php }?></td>
                        </tr>
                        <?php } ?>
                      </tbody>
                </table>

                <div id="pages"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
                </div>
              </div>

             </td>
          </tr>
        </table>

    </td>
</tr>
</table>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
